package day0325;

public class Test6 {
    public static void main(String[] args) {
        Test6.leapYear(1000,2025);
    }


    //给leapYear方法设置一个范围， 定义两个参数,int start, int end
    public static  void  leapYear(int start,  int end){
        for (int year = start; year <=end ; year++) {
            if( !((year%400==0)||(year%4==0 && year%100 != 0))){//如果year不是闰年就跳过
                //  !  (((year%400整除) || (year能被4整除&&year不能被100整除)))
                continue;
            }
            System.out.println(year);
        }
    }
}
